﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Microwave: Microwave Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Microwave: Microwave Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Microwave Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Microwave" -->
<p><code>#include &lt;<a class="el" href="_microwave_8h_source.html">Microwave.h</a>&gt;</code></p>

<p><a href="class_microwave-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a4841456633df59a69ae8f4cc07e37362">Microwave</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a6363c148c2f2c15047505d90f271497a">~Microwave</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a3ee6c3e6fc93f773e8a7b376fb5feece">Process</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a91a8dac07ba5c0c5a93d978c3ad0429e">GetRtxCounter</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#aa7f4bfe185c0e1feb25048d516bb716f">evStart</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#ad4735ddccdc7096b7466b4dcbe34a891">evStop</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#ac43ce0105d42e3fbf34b836dbc19edf0">evTurnOn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a66dfdd07beb714f014e44be774254bfb">evTurnOff</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a5614bebde7a67e7d7ec85a9bd168aa5b">evCookingDone</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a1edc22f3f85604af9657e3bd2b7ec0db">evDoorOpened</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a789a8365e1e2d82b7bb504da761bf933">evDoorClosed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a4a54f1b5c66af1f0cf09ca4ff23ad007">Print</a> (const string &amp;message)</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">MicrowaveContext &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">MicrowaveContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#ab9f207cb699db8ef6fcc2f8e808be829">iRtxCount</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_microwave.html#a7ed1c6ec309df83004ec4ff33fa5b6db">iCounter</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_microwave_8h_source.html#l00013">13</a> of file <a class="el" href="_microwave_8h_source.html">Microwave.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4841456633df59a69ae8f4cc07e37362"></a><!-- doxytag: member="Microwave::Microwave" ref="a4841456633df59a69ae8f4cc07e37362" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Microwave::Microwave </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00010">10</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a> = <span class="keyword">new</span> MicrowaveContext(*<span class="keyword">this</span>);
    <a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a>-&gt;SetObserver(SmBoostObserver::GetInstance());
    <a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a>-&gt;EnterInitialState();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a6363c148c2f2c15047505d90f271497a"></a><!-- doxytag: member="Microwave::~Microwave" ref="a6363c148c2f2c15047505d90f271497a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Microwave::~Microwave </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00017">17</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keyword">delete</span> <a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a>;
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5614bebde7a67e7d7ec85a9bd168aa5b"></a><!-- doxytag: member="Microwave::evCookingDone" ref="a5614bebde7a67e7d7ec85a9bd168aa5b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evCookingDone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00051">51</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evCookingDone();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a789a8365e1e2d82b7bb504da761bf933"></a><!-- doxytag: member="Microwave::evDoorClosed" ref="a789a8365e1e2d82b7bb504da761bf933" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evDoorClosed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00061">61</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evDoorClosed();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a1edc22f3f85604af9657e3bd2b7ec0db"></a><!-- doxytag: member="Microwave::evDoorOpened" ref="a1edc22f3f85604af9657e3bd2b7ec0db" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evDoorOpened </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00056">56</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evDoorOpened();
}
</pre></div>
</div>
</div>
<a class="anchor" id="aa7f4bfe185c0e1feb25048d516bb716f"></a><!-- doxytag: member="Microwave::evStart" ref="aa7f4bfe185c0e1feb25048d516bb716f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00031">31</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evStart();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ad4735ddccdc7096b7466b4dcbe34a891"></a><!-- doxytag: member="Microwave::evStop" ref="ad4735ddccdc7096b7466b4dcbe34a891" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00036">36</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evStop();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a66dfdd07beb714f014e44be774254bfb"></a><!-- doxytag: member="Microwave::evTurnOff" ref="a66dfdd07beb714f014e44be774254bfb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evTurnOff </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00046">46</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evTurnOff();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ac43ce0105d42e3fbf34b836dbc19edf0"></a><!-- doxytag: member="Microwave::evTurnOn" ref="ac43ce0105d42e3fbf34b836dbc19edf0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::evTurnOn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00041">41</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_microwave.html#a51c09e2537ff953d6c410c186380bafd">GetContext</a>().evTurnOn();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a51c09e2537ff953d6c410c186380bafd"></a><!-- doxytag: member="Microwave::GetContext" ref="a51c09e2537ff953d6c410c186380bafd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MicrowaveContext &amp; Microwave::GetContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00022">22</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keywordflow">if</span>(<a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a> != NULL){
        <span class="keywordflow">return</span> *<a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a>;
    } <span class="keywordflow">else</span> {
        <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;context is not set&quot;</span>);
    }
}
</pre></div>
</div>
</div>
<a class="anchor" id="a91a8dac07ba5c0c5a93d978c3ad0429e"></a><!-- doxytag: member="Microwave::GetRtxCounter" ref="a91a8dac07ba5c0c5a93d978c3ad0429e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Microwave::GetRtxCounter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8h_source.html#l00023">23</a> of file <a class="el" href="_microwave_8h_source.html">Microwave.h</a>.</p>
<div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> <a class="code" href="class_microwave.html#ab9f207cb699db8ef6fcc2f8e808be829">iRtxCount</a>;}
</pre></div>
</div>
</div>
<a class="anchor" id="a4a54f1b5c66af1f0cf09ca4ff23ad007"></a><!-- doxytag: member="Microwave::Print" ref="a4a54f1b5c66af1f0cf09ca4ff23ad007" args="(const string &amp;message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::Print </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>message</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8cpp_source.html#l00066">66</a> of file <a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    BOOST_LOG_L3(message);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a3ee6c3e6fc93f773e8a7b376fb5feece"></a><!-- doxytag: member="Microwave::Process" ref="a3ee6c3e6fc93f773e8a7b376fb5feece" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Microwave::Process </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a7ed1c6ec309df83004ec4ff33fa5b6db"></a><!-- doxytag: member="Microwave::iCounter" ref="a7ed1c6ec309df83004ec4ff33fa5b6db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_microwave.html#a7ed1c6ec309df83004ec4ff33fa5b6db">Microwave::iCounter</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8h_source.html#l00041">41</a> of file <a class="el" href="_microwave_8h_source.html">Microwave.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab9f207cb699db8ef6fcc2f8e808be829"></a><!-- doxytag: member="Microwave::iRtxCount" ref="ab9f207cb699db8ef6fcc2f8e808be829" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_microwave.html#ab9f207cb699db8ef6fcc2f8e808be829">Microwave::iRtxCount</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8h_source.html#l00040">40</a> of file <a class="el" href="_microwave_8h_source.html">Microwave.h</a>.</p>

</div>
</div>
<a class="anchor" id="ade8a3fc751fde19161408844833bda23"></a><!-- doxytag: member="Microwave::m_pContext" ref="ade8a3fc751fde19161408844833bda23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MicrowaveContext* <a class="el" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">Microwave::m_pContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_microwave_8h_source.html#l00039">39</a> of file <a class="el" href="_microwave_8h_source.html">Microwave.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_microwave_8h_source.html">Microwave.h</a></li>
<li><a class="el" href="_microwave_8cpp_source.html">Microwave.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
